// 巷道启动与禁用
export interface roleAddUserParams {
  road?: string;
  roadName?: string;
  status?: string;
  statusCode?: string;
}

// 查询立体库条件
export interface searchByParams {
  searchParams: {
    rowNo: string;
    isEmp: string;
    shelvesCode: string;
    palletCode: string;
    transferPosition: string;
    status: string;
  };
  pageParameter: {
    rows: number;
    page: number;
  };
}

// 配送小车查询
export interface searchByCarParams {
  searchParams: {
    carCode?: string;
    carUser?: string;
    status?: string;
    carName?: string;
    carSeat?: string;
    remark?: string;
  };
  pageParameter: {
    rows: number;
    page: number;
  };
}
// 配送小车新增
export interface addByCarParams {
  carCode?: string;
  carUser?: string;
  status?: string;
  carName?: string;
  carSeat?: string;
  remark?: string;
}

// 配送小车修改
export interface editByCarParams {
  msCarId: string;
  carCode?: string;
  carUser?: string;
  status?: string;
  carName?: string;
  carSeat?: string;
  remark?: string;
}

// 配送小车删除
export interface delByCarParams {
  msCarId: string;
}

// 工作包器具查询
export interface searchToolKitParams {
  searchParams: {
    toolCode: string;
    toolName: string;
    length: string;
    width: string;
    height: string;
    bearWeight: string;
    partCnt: string;
  };
  pageParameter: {
    rows: number;
    page: number;
  };
}
// 工作包器具新增
export interface addToolKitParams {
  toolCode: string;
  toolName: string;
  length: string;
  width: string;
  height: string;
  bearWeight: string;
  partCnt: string;
}

// 工作包器具修改
export interface editToolKitParams {
  msWpToolId: string;
  toolCode: string;
  toolName: string;
  length: string;
  width: string;
  height: string;
  bearWeight: string;
  partCnt: string;
}

// 工作包器具删除
export interface delToolKitParams {
  msWpToolId: string;
}

// 工作包物料查询
export interface searchToolMaterialParams {
  searchParams: {
    palletCode: string;
    packageCode: string;
    aoCode: string;
    itemCode: string;
  };
  pageParameter: {
    rows: number;
    page: number;
  };
}
// 工作包物料新增
export interface addToolMaterialParams {
  palletCode: string;
  packageCode: string;
  aoCode: string;
  itemCode: string;
  itemQty: string;
  deliveryLocation: string;
}

// 工作包物料修改
export interface editToolMaterialParams {
  msPackageMaterialId: string;
  palletCode: string;
  packageCode: string;
  aoCode: string;
  itemCode: string;
  itemQty: string;
  deliveryLocation: string;
}

// 工作包物料删除
export interface delToolMaterialParams {
  msPackageMaterialId: string[];
}

// 缓存料箱查询
export interface searchBufferBinParams {
  searchParams: {
    workbinCode: string;
    workbinName: string;
    workbinSeq: string;
  };
  pageParameter: {
    rows: number;
    page: number;
  };
}
// 缓存料箱新增
export interface addBufferBinParams {
  workbinCode: string;
  workbinName: string;
  workbinSeq: string;
  workbinLength: string;
  workbinWidth: string;
  workbinHeight: string;
  workbinWeight: string;
}

// 缓存料箱修改
export interface editBufferBinParams {
  msWorkbinId: string;
  workbinCode: string;
  workbinName: string;
  workbinSeq: string;
  workbinLength: string;
  workbinWidth: string;
  workbinHeight: string;
  workbinWeight: string;
}

// 缓存料箱删除
export interface delBufferBinParams {
  msWorkbinId: string;
}

// 缓存料箱物料查询
export interface searchBinMaterialParams {
  searchParams: {
    itemCode: string;
    aoCode: string;
    isBzj: string;
    shop: string;
    groupCode: string;
  };
  pageParameter: {
    rows: number;
    page: number;
  };
}
// 缓存料箱物料新增
export interface addBinMaterialParams {
  aoCode: string;
  itemCode: string;
  itemQty: string;
  isBzj: string;
  shop: string;
  groupCode: string;
}

// 缓存料箱物料修改
export interface editBinMaterialParams {
  msWorkbinRuleId: string;
  aoCode: string;
  itemCode: string;
  itemQty: string;
  isBzj: string;
  shop: string;
  groupCode: string;
}

// 缓存料箱物料删除
export interface delBinMaterialParams {
  msWorkbinRuleIds: string[];
}

// 大件区货架查询
export interface searchLargeShelvesParams {
  searchParams: {
    placeType: string;
    locatorNo: string;
  };
  pageParameter: {
    rows: number;
    page: number;
  };
}
// 大件区货架新增
export interface addLargeShelvesParams {
  locatorNo: string;
  placeType: string;
  itemCode: string;
  maxQty: string;
}

// 大件区货架修改
export interface editLargeShelvesParams {
  wmsLocatorId: string;
  locatorNo: string;
  placeType: string;
  itemCode: string;
  maxQty: string;
}

// 大件区货架删除
export interface delLargeShelvesParams {
  wmsLocatorIds: string[];
}

// 大件区物料查询
export interface searchLargeMaterialParams {
  searchParams: {
    itemCode: string;
    locatorNo: string;
  };
  pageParameter: {
    rows: number;
    page: number;
  };
}
// 大件区物料新增
export interface addLargeMaterialParams {
  itemCode: string;
  locatorNo: string;
}

// 大件区物料修改
export interface editLargeMaterialParams {
  msBulkyItemsId: string;
  itemCode: string;
  locatorNo: string;
}

// 大件区物料删除
export interface delLargeMaterialParams {
  msBulkyItemsId: string[];
}

export interface RecordItem {
  msTaskAoId: string;
  aoCode: string;
  aoName: string;
  requiredTime: string;
  delieveryState: string;
  sortingStatus: string;
  aoBarcode: string;
  station: string;
  sortingIp: string;
  toolCode: string;
  dailyTime: string;
  palletCode: string;
  roadWay: string;
  startCode: string;
  taskStatus: string;
  disabled?: boolean;
}

// 日志查询
export interface searchLogParams {
  searchParams: {
    taskType: string;
    wmsTaskId: string;
    palletCode: string;
    startCode: string;
    endCode: string;
    isFinish: string;
    isBack: string;
  };
  pageParameter: {
    rows: number;
    page: number;
  };
  startDate: string;
  endDate: string;
}
// 结束日志
export interface overLogParams {
  msGkLogIds: string[];
}

// 日志-清理占位
export interface clearLogParams {
  msGkLogIds: string[];
  type: string;
}

// 日志-下发任务
export interface goLogParams {
  msGkLogId: string;
}

// 配送员查询
export interface searchPersonParams {
  searchParams: {
    deliveryEmpCode: string;
    deliveryEmpName: string;
  };
  pageParameter: {
    rows: number;
    page: number;
  };
}
//  配送员新增
export interface addPersonParams {
  deliveryEmpCode: string;
  deliveryEmpName: string;
}

//  配送员修改
export interface editPersonParams {
  msDeliveryCrewId: string;
  deliveryEmpCode: string;
  deliveryEmpName: string;
}

//  配送员删除
export interface delPersonParams {
  msDeliveryCrewId: string[];
}

// 操作台查询
export interface searchConsoleParams {
  pageParameter: {
    rows: number;
    page: number;
  };
}

// 分拣台上下线/修改操作台
export interface updateConsoleStatusParams {
  CONSOLENAME: string;
  CONSOLEWORKBINMAXQUANTITY: string;
  CONSOLEID: string;
  CONSOLECALLBYWORKBIN: string;
  CONSOLETOOLMAXQUANTITY: string;
  CONSOLECALLBYTOOL: string;
  CONSOLEIP: string;
  CONSOLESTATUS: string;
  CONSOLETYPE: string;
}

// 新增操作台
export interface addConsoleParams {
  CONSOLENAME: string;
  CONSOLEWORKBINMAXQUANTITY: string;
  CONSOLECALLBYWORKBIN: string;
  CONSOLETOOLMAXQUANTITY: string;
  CONSOLECALLBYTOOL: string;
  CONSOLEIP: string;
  CONSOLESTATUS: string;
  CONSOLETYPE: string;
}

// 删除操作台
export interface deleteConsoleParams {
  data: string[];
}

export interface selectedOption {
  label: string;
  value: number;
}
